; $(function () {
    var x = 0;
    var width = $(".drag").width();
    console.log(width)
    var poLeft = -(width-750);
    $(".drag").on("touchstart", function (e) {
        x = e.targetTouches[0].clientX - this.offsetLeft;
    })
    $(".drag").on("touchmove", function (e) {
        var stardX = e.targetTouches[0].clientX - x;
        if(stardX > 0){
           $(this).css({
               "left" : 0 + "px"
           }) 
        }else if(stardX < poLeft){
            $(this).css({
                "left" : poLeft + "px"
            })
        }else{
            $(this).css({
                "left" : stardX + "px"
            })
        }
    })
    // 头部汉堡菜单上拉下拉
    $('.menu').on("touchstart",function(){
        $(".right_menu").toggle();
    })
})

